package com.ym.medical.domain.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;
import javax.persistence.Id;

/**
 * 【请填写功能名称】对象 sys_role_data_rule
 *
 * @author ym
 * @date 2020-08-19
 */
@ApiModel("【请填写功能名称】-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysRoleDataRule implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;

    /**
     * 适用角色列表，如：,RoleA,RoleB,
     */
    @ApiModelProperty("适用角色列表，如：,RoleA,RoleB,")
    private String roles;

    /**
     * 主实体，多表联合，如：,SystemCode,User,
     */
    @ApiModelProperty("主实体，多表联合，如：,SystemCode,User,")
    private String fromEntity;

    /**
     * 过滤表达式字段,如：userId = {uid}  and {me}.dept_id={dept_id_a} and {me.a}.dept_id={dept_id_b}
     */
    @ApiModelProperty("过滤表达式字段,如：userId = {uid}  and {me}.dept_id={dept_id_a} and {me.a}.dept_id={dept_id_b}")
    private String exps;

    /**
     * 规则说明
     */
    @ApiModelProperty("规则说明")
    private String ruleComment;

}
